package org.freedom.boot.bean;

import java.util.Date;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

public class Evaluate {
	
	
	
    private Integer evaluateId;

    private Integer orderItemId;

    private Integer userId;
   
    @NotBlank(message="不能为空")
    private String content;

    private Date evaluateTime;

    private Integer logisticsGrade;

    private Integer serviceGrade;

    private Integer goodsGrade;

    private Integer toEvaluateId;

    private Integer ifAnonymous;

    private Integer adminId;

    private String img;
    
    private User user;
    
    private OrderItem orderItem;
    
    

    public Evaluate() {
		super();
		// TODO Auto-generated constructor stub
	}
    
    

	public Evaluate(Integer evaluateId, Integer orderItemId, Integer userId, String content, Date evaluateTime,
			Integer logisticsGrade, Integer serviceGrade, Integer goodsGrade, Integer toEvaluateId, Integer ifAnonymous,
			Integer adminId, String img, User user, OrderItem orderItem) {
		super();
		this.evaluateId = evaluateId;
		this.orderItemId = orderItemId;
		this.userId = userId;
		this.content = content;
		this.evaluateTime = evaluateTime;
		this.logisticsGrade = logisticsGrade;
		this.serviceGrade = serviceGrade;
		this.goodsGrade = goodsGrade;
		this.toEvaluateId = toEvaluateId;
		this.ifAnonymous = ifAnonymous;
		this.adminId = adminId;
		this.img = img;
		this.user = user;
		this.orderItem = orderItem;
	}



	public OrderItem getOrderItem() {
		return orderItem;
	}

	public void setOrderItem(OrderItem orderItem) {
		this.orderItem = orderItem;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getEvaluateId() {
        return evaluateId;
    }

    public void setEvaluateId(Integer evaluateId) {
        this.evaluateId = evaluateId;
    }

    public Integer getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(Integer orderItemId) {
        this.orderItemId = orderItemId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getEvaluateTime() {
        return evaluateTime;
    }

    public void setEvaluateTime(Date evaluateTime) {
        this.evaluateTime = evaluateTime;
    }

    public Integer getLogisticsGrade() {
        return logisticsGrade;
    }

    public void setLogisticsGrade(Integer logisticsGrade) {
        this.logisticsGrade = logisticsGrade;
    }

    public Integer getServiceGrade() {
        return serviceGrade;
    }

    public void setServiceGrade(Integer serviceGrade) {
        this.serviceGrade = serviceGrade;
    }

    public Integer getGoodsGrade() {
        return goodsGrade;
    }

    public void setGoodsGrade(Integer goodsGrade) {
        this.goodsGrade = goodsGrade;
    }

    public Integer getToEvaluateId() {
        return toEvaluateId;
    }

    public void setToEvaluateId(Integer toEvaluateId) {
        this.toEvaluateId = toEvaluateId;
    }

    public Integer getIfAnonymous() {
        return ifAnonymous;
    }

    public void setIfAnonymous(Integer ifAnonymous) {
        this.ifAnonymous = ifAnonymous;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img == null ? null : img.trim();
    }
}